<?php


namespace app\api\library\index\getAddress;


use think\facade\Db;

class V
{
    public static function run()
    {
        //查询有无openid
        $address = Db::name('mall_region')->field('id,pid,name,level')->select()->toArray();
//        halt($address);
        _outPut(200, makeTree($address,'id','pid'));
    }
}